#ifndef FLIGHTJOURNEYWIDGET_H
#define FLIGHTJOURNEYWIDGET_H

#include <QWidget>
#include <QVBoxLayout>
#include "flightsegmentwidget.h"

namespace Ui {
class FlightJourneyWidget;
}

class FlightJourneyWidget : public QWidget {
    Q_OBJECT

public:
    explicit FlightJourneyWidget(QWidget* parent = nullptr);
    ~FlightJourneyWidget();

    // Setter methods
    void setTotalPrice(double price);
    void setTotalTime(int totalTime);
    void setSegmentCount(int count);
    void addSegmentWidget(FlightSegmentWidget* segment);
    void setTotalHours(int hour);
    void setTotalMinutes(int minute);

private:
    Ui::FlightJourneyWidget* ui;
    QVBoxLayout* segmentsLayout;  // Layout for adding FlightSegmentWidget dynamically
};

#endif // FLIGHTJOURNEYWIDGET_H
